//package com.yunhe.option.controller.base;
//
//import com.yunhe.option.domain.base.VoltageLevel;
//import com.yunhe.common.model.ResultObject;
////import com.yunhe.common.model.base.VoltageLevelDTO;
//import com.yunhe.option.service.base.VoltageLevelService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Optional;
//
//@Api(value = "voltageLevel",description = "电压等级维护", tags = {"Base_VoltageLevel"})
//@RestController
//@RequestMapping("/voltageLevels")
//public class VoltageLevelController {
//
//    @Autowired
//    private VoltageLevelService voltageLevelService;
//
//    @ApiOperation("根据条件获得电压等级列表")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "costPriceId", value = "用电电价ID", dataType = "long", paramType = "query")
//    })
//    @RequestMapping(method = RequestMethod.GET)
//    public ResponseEntity<ResultObject> search(@RequestParam("costPriceId") Optional<Long> costPriceId) {
//        Iterable<VoltageLevel> result = voltageLevelService.search(costPriceId.orElse(null));
//        return new ResponseEntity<>(new ResultObject(result), HttpStatus.OK);
//    }
//}
